﻿using System;
using System.Linq;
using System.Linq.Expressions;
using TelerikedIn.Models;

namespace TelerikedIn.WebApp.ViewModels.Skills
{
    public class SkillToEndorseVM : SkillVM
    {
        public bool IsEndorsed { get; set; }

        public int EndorsmentsCount { get; set; }

        public static Expression<Func<Skill, SkillToEndorseVM>> FromSkillEntity
        {
            get
            {
                return s => new SkillToEndorseVM
                {
                    Id = s.Id,
                    Name = s.Name,
                    IsEndorsed = false
                };
            }
        }
    }
}